import 'package:lai_zhan/common/model/userResult/user_result.dart';
import 'package:flutter_redux/flutter_redux.dart';
import 'package:redux/redux.dart';

/**
 * 用户类Redux
 */
final UserReducer = combineReducers<UserResult>([TypedReducer<UserResult,UpdateUserAction>(_updateLoaded)]);

UserResult _updateLoaded(UserResult user,action) {
  user = action.userInfo;
  return user;
}

class UpdateUserAction {
  final UserResult userInfo;
  UpdateUserAction(this.userInfo);
}